package com.ljx.recruitment.interview.enums;

import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-12-26  20:56
 */
@Getter
@AllArgsConstructor
public enum JobProcessSubmitOpEnum {

    ADD(1, "新增流程"),
    REMOVE(-1, "移除流程");

    private Integer key;
    private String value;

    public static Map<Integer, JobProcessSubmitOpEnum> cache;
    static {
        cache = Arrays.stream(JobProcessSubmitOpEnum.values()).collect(Collectors.toMap(JobProcessSubmitOpEnum::getKey, Function.identity()));
    }
}
